package com.example.validatestudy.demos.web;

import com.example.validatestudy.demos.tread.deadlock.DeadLockTest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 测试死锁
 */
@Controller
public class DeadLockController {

    @RequestMapping("/deadLockTest")
    @ResponseBody
    public String deadLockTest() {
        DeadLockTest.deadLockTest();
        return "执行完成";
    }

}
